<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Element
 *
 * @author julien
 */
require_once 'Ressources/Constants.php';
abstract class Element {
    protected $id;
    
    public function __construct($arrayOrId) {
        if(is_array($arrayOrId)){
            $this->id = $arrayOrId['ID'];
        }
        else{
            $this->id = $arrayOrId;
        }
    }
    
    public function getId(){
        return $this->id;   
    }
    
    public function setId($id){
        if(is_integer($id)){
            $this->id= $id;
        }
    }
    
}

?>
